package com.ktjiaoyu.server.service;

import com.ktjiaoyu.server.pojo.Leavebill;
import com.ktjiaoyu.server.pojo.RespBean;
import com.ktjiaoyu.server.vo.WorkFlowVo;

import java.io.InputStream;

public interface IWorkFlowService {
    //查询流程部署记录
    public RespBean queryProcessDeploy(WorkFlowVo workFlowVo);

    //查询流程定义记录
    public RespBean loadAllProcessDefinition(WorkFlowVo workFlowVo);

    //部署流程
    public void addWorkFlow(InputStream inputStream, String deploymentName);

    //查询流程图
    public InputStream queryProcessDeploymentImage(String deploymentId);

    //开启流程
    public void startProcess(Integer id);

    //查询我的待办任务
    public RespBean queryCurrentUserTask(WorkFlowVo workFlowVo);

    // 通过流程部署ID删除流程部署信息
    public void deleteWorkFlow(String deploymentId);

    //根据任务id查询请假单数据
    public RespBean queryLeaveBillByTaskId(String taskId);

    //根据任务id查询当前任务节点下面的连线
    public RespBean queryOutcomeByTaskId(String taskId);

    //根据任务id查询批注
    public RespBean queryCommentByTaskId(String taskId);

    //完成任务
    public void completeTask(WorkFlowVo workFlowVo);
}
